﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005A3 RID: 1443
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishItemIdScRsp : IMessage<FinishItemIdScRsp>, IMessage, IEquatable<FinishItemIdScRsp>, IDeepCloneable<FinishItemIdScRsp>, IBufferMessage
	{
		// Token: 0x1700127F RID: 4735
		// (get) Token: 0x060040DD RID: 16605 RVA: 0x000B17F5 File Offset: 0x000AF9F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishItemIdScRsp> Parser
		{
			get
			{
				return FinishItemIdScRsp._parser;
			}
		}

		// Token: 0x17001280 RID: 4736
		// (get) Token: 0x060040DE RID: 16606 RVA: 0x000B17FC File Offset: 0x000AF9FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishItemIdScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001281 RID: 4737
		// (get) Token: 0x060040DF RID: 16607 RVA: 0x000B180E File Offset: 0x000AFA0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishItemIdScRsp.Descriptor;
			}
		}

		// Token: 0x060040E0 RID: 16608 RVA: 0x000B1815 File Offset: 0x000AFA15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishItemIdScRsp()
		{
		}

		// Token: 0x060040E1 RID: 16609 RVA: 0x000B181D File Offset: 0x000AFA1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishItemIdScRsp(FinishItemIdScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.textId_ = other.textId_;
			this.itemId_ = other.itemId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060040E2 RID: 16610 RVA: 0x000B185A File Offset: 0x000AFA5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishItemIdScRsp Clone()
		{
			return new FinishItemIdScRsp(this);
		}

		// Token: 0x17001282 RID: 4738
		// (get) Token: 0x060040E3 RID: 16611 RVA: 0x000B1862 File Offset: 0x000AFA62
		// (set) Token: 0x060040E4 RID: 16612 RVA: 0x000B186A File Offset: 0x000AFA6A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001283 RID: 4739
		// (get) Token: 0x060040E5 RID: 16613 RVA: 0x000B1873 File Offset: 0x000AFA73
		// (set) Token: 0x060040E6 RID: 16614 RVA: 0x000B187B File Offset: 0x000AFA7B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TextId
		{
			get
			{
				return this.textId_;
			}
			set
			{
				this.textId_ = value;
			}
		}

		// Token: 0x17001284 RID: 4740
		// (get) Token: 0x060040E7 RID: 16615 RVA: 0x000B1884 File Offset: 0x000AFA84
		// (set) Token: 0x060040E8 RID: 16616 RVA: 0x000B188C File Offset: 0x000AFA8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x060040E9 RID: 16617 RVA: 0x000B1895 File Offset: 0x000AFA95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishItemIdScRsp);
		}

		// Token: 0x060040EA RID: 16618 RVA: 0x000B18A4 File Offset: 0x000AFAA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishItemIdScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.TextId == other.TextId && this.ItemId == other.ItemId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060040EB RID: 16619 RVA: 0x000B1900 File Offset: 0x000AFB00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.TextId != 0U)
			{
				num ^= this.TextId.GetHashCode();
			}
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060040EC RID: 16620 RVA: 0x000B1971 File Offset: 0x000AFB71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060040ED RID: 16621 RVA: 0x000B1979 File Offset: 0x000AFB79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060040EE RID: 16622 RVA: 0x000B1984 File Offset: 0x000AFB84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.ItemId);
			}
			if (this.TextId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.TextId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060040EF RID: 16623 RVA: 0x000B19FC File Offset: 0x000AFBFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.TextId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TextId);
			}
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060040F0 RID: 16624 RVA: 0x000B1A6C File Offset: 0x000AFC6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishItemIdScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.TextId != 0U)
			{
				this.TextId = other.TextId;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060040F1 RID: 16625 RVA: 0x000B1AD0 File Offset: 0x000AFCD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060040F2 RID: 16626 RVA: 0x000B1ADC File Offset: 0x000AFCDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 56U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.TextId = input.ReadUInt32();
					}
				}
				else
				{
					this.ItemId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400198A RID: 6538
		private static readonly MessageParser<FinishItemIdScRsp> _parser = new MessageParser<FinishItemIdScRsp>(() => new FinishItemIdScRsp());

		// Token: 0x0400198B RID: 6539
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400198C RID: 6540
		public const int RetcodeFieldNumber = 15;

		// Token: 0x0400198D RID: 6541
		private uint retcode_;

		// Token: 0x0400198E RID: 6542
		public const int TextIdFieldNumber = 7;

		// Token: 0x0400198F RID: 6543
		private uint textId_;

		// Token: 0x04001990 RID: 6544
		public const int ItemIdFieldNumber = 2;

		// Token: 0x04001991 RID: 6545
		private uint itemId_;
	}
}
